package com.zp.business.entity.infusion;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 输液室登记项目对象 infusion_item
 *
 * @author zhang peng
 * @ date 2025-02-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("infusion_item")
public class InfusionItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "infusion_item_id")
    private String infusionItemId;


    /**
     * 登记主表ID
     */
    private String registerId;


    /**
     * 组号
     */
    private Integer groupNumber;


    /**
     * 处方项目ID
     */
    private String itemId;


    /**
     * 输液次数
     */
    private Integer infusionNumber;


    /**
     * 输液天数
     */
    private Integer infusionDay;


    /**
     * 瓶签二维码
     */
    private String labelCode;


    /**
     * 皮试人
     */
    private String skinNurse;


    /**
     * 皮试时间
     */
    private Date skinTime;


    /**
     * 排序
     */
    private Integer sort;


    /**
     * 机构ID
     */
    private String orgId;


    /**
     * 标志
     */
    @TableLogic
    private String delFlag;

    /**
     * 备注信息
     */
    private String remarks;
    /**
     * 皮试人姓名
     */
    private String skinNurseName;
    /**
     * 机构名称
     */
    private String orgName;
    /**
     * 熔断后异常信息
     */
    @TableField(exist = false)
    private String exceptionCode;

    public void initEntity() {
        this.delFlag = "0";
    }


}
